package net.hn.hnms.biz.api.safety.monitor.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 智呈物联 pan'sx
 * 2022/7/26 17:25
 * 1.0 version
 */
@ApiModel("安全监测")
@Data
public class SafetyMonitorVo {
   @ApiModelProperty("传感器编码")
    private String code;

    @ApiModelProperty("传感器类型")
    private String type;

    @ApiModelProperty("传感器位置")
    private String addr;

    @ApiModelProperty("监测值")
    private String value;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("状态")
    private String status;

    @JsonFormat(
            pattern = "MM-dd HH:mm",
            timezone = "GMT+8"
    )
    @ApiModelProperty("数据时间")
    private Date date;
}
